home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 January: Mac OS SDK / Dev.CD Jan 99 SDK1.toast / Development Kits / Interfaces&Libraries / Universal / Interfaces / AIncludes / Timer.a < prev    next >
Encoding:
Text File  |  1998-08-17  |  2.4 KB  |  104 lines  |  [TEXT/MPS ]

  1. ;
  2. ;    File:        Timer.a
  3. ;
  4. ;    Contains:    Time Manager interfaces.
  5. ;
  6. ;    Version:    Technology:    System 7.5
  7. ;                Release:    Universal Interfaces 3.2
  8. ;
  9. ;    Copyright:    © 1985-1993, 1995-1998 by Apple Computer, Inc., all rights reserved
  10. ;
  11. ;    Bugs?:        For bug reports, consult the following page on
  12. ;                the World Wide Web:
  13. ;
  14. ;                    http://developer.apple.com/bugreporter/
  15. ;
  16. ;
  17.     IF &TYPE('__TIMER__') = 'UNDEFINED' THEN
  18. __TIMER__ SET 1
  19.  
  20.     IF &TYPE('__CONDITIONALMACROS__') = 'UNDEFINED' THEN
  21.     include 'ConditionalMacros.a'
  22.     ENDIF
  23.     IF &TYPE('__MACTYPES__') = 'UNDEFINED' THEN
  24.     include 'MacTypes.a'
  25.     ENDIF
  26.     IF &TYPE('__OSUTILS__') = 'UNDEFINED' THEN
  27.     include 'OSUtils.a'
  28.     ENDIF
  29.  
  30.  
  31.                                                             ; high bit of qType is set if task is active 
  32. kTMTaskActive                    EQU        $00008000
  33.  
  34.  
  35. ; typedef TMTask *                        TMTaskPtr
  36.  
  37. TMTask                    RECORD 0
  38. qLink                     ds.l    1                ; offset: $0 (0)
  39. qType                     ds.w    1                ; offset: $4 (4)
  40. tmAddr                     ds.l    1                ; offset: $6 (6)
  41. tmCount                     ds.l    1                ; offset: $A (10)
  42. tmWakeUp                 ds.l    1                ; offset: $E (14)
  43. tmReserved                 ds.l    1                ; offset: $12 (18)
  44. sizeof                     EQU *                    ; size:   $16 (22)
  45.                         ENDR
  46. ;
  47. ; pascal void InsTime(QElemPtr tmTaskPtr)
  48. ;
  49.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  50.         ; parameters:
  51.         ;    tmTaskPtr       => A0
  52.         _InsTime:    OPWORD    $A058
  53.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  54.         IMPORT_CFM_FUNCTION InsTime
  55.     ENDIF
  56.  
  57. ;
  58. ; pascal void InsXTime(QElemPtr tmTaskPtr)
  59. ;
  60.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  61.         ; parameters:
  62.         ;    tmTaskPtr       => A0
  63.         _InsXTime:    OPWORD    $A458
  64.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  65.         IMPORT_CFM_FUNCTION InsXTime
  66.     ENDIF
  67.  
  68. ;
  69. ; pascal void PrimeTime(QElemPtr tmTaskPtr, long count)
  70. ;
  71.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  72.         ; parameters:
  73.         ;    tmTaskPtr       => A0
  74.         ;    count           => D0
  75.         _PrimeTime:    OPWORD    $A05A
  76.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  77.         IMPORT_CFM_FUNCTION PrimeTime
  78.     ENDIF
  79.  
  80. ;
  81. ; pascal void RmvTime(QElemPtr tmTaskPtr)
  82. ;
  83.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  84.         ; parameters:
  85.         ;    tmTaskPtr       => A0
  86.         _RmvTime:    OPWORD    $A059
  87.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  88.         IMPORT_CFM_FUNCTION RmvTime
  89.     ENDIF
  90.  
  91. ;
  92. ; pascal void Microseconds(UnsignedWide *microTickCount)
  93. ;
  94.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  95.         _Microseconds:    OPWORD    $A193
  96.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  97.         IMPORT_CFM_FUNCTION Microseconds
  98.     ENDIF
  99.  
  100.  
  101.  
  102.     ENDIF ; __TIMER__ 
  103.  
  104.